﻿using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using LeadThing.AbpZeroTemplate.CallTypes;

namespace LeadThing.AbpZeroTemplate.CallTypes.EntityMapper.CallTypes
{

    /// <summary>
    /// 一键报警类型表的数据配置文件
    /// </summary>
    public class CallTypeCfg : EntityTypeConfiguration<CallType>
    {
        /// <summary>
        ///  构造方法[默认链接字符串< see cref = "AbpZeroTemplateDbContext" /> ]
        /// </summary>
        public CallTypeCfg()
        {
            ToTable("CallType", AbpZeroTemplateConsts.SchemaName.Basic);

            // 一键报警类型名称
            Property(a => a.Title).HasMaxLength(4000);
            // 备注
            Property(a => a.Remarks).HasMaxLength(4000);
        }
    }
}